<form action="/upload" method="post" enctype="multipart/form-data" id="upload_form">                     
  <label for="cv_name">Name:</label>
  <%= text_field 'cv','name' %>
  <br/>
  <label for="cv_email">Email:</label>
  <%= text_field 'cv', 'email' %>
  <br/>
  <label for="cv_current_salary">Current salary:</label>
  <%= text_field 'cv', 'current_salary' %>
  <br/>
  <label for="cv_salary_sought">Salary sought:</label>
  <%= text_field 'cv', 'salary_sought' %>
  <br/>
  <label for="cv_notice_period">Notice period:</label>
  <%= select 'cv', 'notice_period', ['Immediate', '1 Week', '2 Weeks', '3 Weeks', '1 Month', 'Longer'] %>
  <br/>
  <label for="cv_car_driver">Car driver?</label>
  <%= select 'cv', 'car_driver', ['Yes', 'No'] %>
  <br/>
  <label for="cv_preferred_locations">Preferred locations:</label>
  <%= text_field 'cv', 'preferred_locations' %>
  <br/>
  <label for="cv_reason_for_leaving">Reason for leaving:</label>
  <%= text_area 'cv', 'reason_for_leaving' %>
  <br/>
  <label for="cv_cv">Attach CV:</label>
  <%= file_field 'cv', 'cv' %>
  <%= hidden_field 'cv', 'jid'%>
  <br/>
  <input type="submit" name="go" value="Send" />
</form>